package com.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentMapper{
    List<Department> selectList(Department department);

    @Select("SELECT * FROM department WHERE dept_id = #{deptId}")
    Department selectById(Long deptId);
}
